package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 检验项目明细对象 biz_inspection_item
 * 
 * @author ruoyi
 * @date 2025-10-29
 */
public class BizInspectionItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 检验项目ID，主键 */
    private Long itemId;

    /** 检验方案ID */
    @Excel(name = "检验方案ID")
    private Long templateId;

    /** 检验方案编号 */
    @Excel(name = "检验方案编号")
    private String templateNo;

    /** 项目序号 */
    @Excel(name = "项目序号")
    private Long itemNo;

    /** 检验项目名称 */
    @Excel(name = "检验项目名称")
    private String itemName;

    /** 检验方法：VISUAL-目视, MEASUREMENT-测量, TEST-测试, VERIFICATION-验证 */
    @Excel(name = "检验方法：VISUAL-目视, MEASUREMENT-测量, TEST-测试, VERIFICATION-验证")
    private String inspectionMethod;

    /** 检验工具 */
    @Excel(name = "检验工具")
    private String inspectionTool;

    /** 验收标准 */
    @Excel(name = "验收标准")
    private String acceptanceCriteria;

    /** 标准值 */
    @Excel(name = "标准值")
    private String standardValue;

    /** 上限值 */
    @Excel(name = "上限值")
    private BigDecimal upperLimit;

    /** 下限值 */
    @Excel(name = "下限值")
    private BigDecimal lowerLimit;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 是否关键项目（0否 1是） */
    @Excel(name = "是否关键项目", readConverterExp = "0=否,1=是")
    private String isCritical;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 删除标志（0存在 1删除） */
    private String delFlag;

    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setTemplateId(Long templateId) 
    {
        this.templateId = templateId;
    }

    public Long getTemplateId() 
    {
        return templateId;
    }
    public void setTemplateNo(String templateNo) 
    {
        this.templateNo = templateNo;
    }

    public String getTemplateNo() 
    {
        return templateNo;
    }
    public void setItemNo(Long itemNo) 
    {
        this.itemNo = itemNo;
    }

    public Long getItemNo() 
    {
        return itemNo;
    }
    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }
    public void setInspectionMethod(String inspectionMethod) 
    {
        this.inspectionMethod = inspectionMethod;
    }

    public String getInspectionMethod() 
    {
        return inspectionMethod;
    }
    public void setInspectionTool(String inspectionTool) 
    {
        this.inspectionTool = inspectionTool;
    }

    public String getInspectionTool() 
    {
        return inspectionTool;
    }
    public void setAcceptanceCriteria(String acceptanceCriteria) 
    {
        this.acceptanceCriteria = acceptanceCriteria;
    }

    public String getAcceptanceCriteria() 
    {
        return acceptanceCriteria;
    }
    public void setStandardValue(String standardValue) 
    {
        this.standardValue = standardValue;
    }

    public String getStandardValue() 
    {
        return standardValue;
    }
    public void setUpperLimit(BigDecimal upperLimit) 
    {
        this.upperLimit = upperLimit;
    }

    public BigDecimal getUpperLimit() 
    {
        return upperLimit;
    }
    public void setLowerLimit(BigDecimal lowerLimit) 
    {
        this.lowerLimit = lowerLimit;
    }

    public BigDecimal getLowerLimit() 
    {
        return lowerLimit;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setIsCritical(String isCritical) 
    {
        this.isCritical = isCritical;
    }

    public String getIsCritical() 
    {
        return isCritical;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("itemId", getItemId())
            .append("templateId", getTemplateId())
            .append("templateNo", getTemplateNo())
            .append("itemNo", getItemNo())
            .append("itemName", getItemName())
            .append("inspectionMethod", getInspectionMethod())
            .append("inspectionTool", getInspectionTool())
            .append("acceptanceCriteria", getAcceptanceCriteria())
            .append("standardValue", getStandardValue())
            .append("upperLimit", getUpperLimit())
            .append("lowerLimit", getLowerLimit())
            .append("unit", getUnit())
            .append("isCritical", getIsCritical())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
